package com.dhh.web.modules;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Auther: dhh
 * @Date: 2018/11/23 09:30
 * @Email: fzlinjianhui@163.com
 * @Description:
 */
public interface BaseService<T> {

    T save(T t);

    void delete(String id);

    Page<T> findByPage(Pageable pageable);

    List<T> findAll();

    T findById(String id);
}
